import pickle
import numpy
from matplotlib import pyplot
pyplot.ion()

image01 = pickle.load( open('image01.pkl') )
print 'Image 01 mean is:',image01.mean()

image02 = pickle.load( open('image02.pkl') )
print 'Image 02 mean is:',image02.mean()


wavelength,flux = numpy.genfromtxt('spectrum.txt',unpack=True)

fig = pyplot.figure()
ax1 = fig.add_subplot(5,1,1)
ax2 = fig.add_subplot(3,1,2)
ax1.plot(wavelength,flux)
ax2.plot(flux,wavelength)
pyplot.draw()

raw_input('Stop here')
